#include<16f877a.h>
#device ADC=10
#include<stdlib.h>
#fuses HS,NOWDT,NOPROTECT,NOLVP
//#use delay(clock=20000000)
//#use delay(clock=11592000)
#use delay(clock=16000000)
#use rs232(baud=9600, xmit=PIN_C6, rcv=PIN_C7)

 void main()
 {
   char string1[]={"hi"},*string2,*string3;
   int i;
   
   while(1)
   {
      

     printf("hello");
     delay_ms(100);
      for(i=0;string1[i]!='\0';i++)
      {
      putchar(string1[i]);
      }
      /*while(*string1!='\0')
      {
      putc((*string1));
      string1++;
      }*/
      delay_ms(100);
   }
 }
